﻿#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main() {
    int n;
    int dectobin[32] = { 0 };
    scanf("%d", &n);
    int i = 31;

    while (n != 0 && i >= 0) {
        dectobin[i] = n % 2;
        n /= 2;
        i--;
    }

    // 输出 32 位二进制
    for (int j = 0; j < 32; j++) {
        printf("%d", dectobin[j]);
    }
    printf("\n");

    return 0;
}